<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>普通订单</title>
		<link rel="stylesheet" href="./../public/css/common.css">
		<link rel="stylesheet" href="./../public/css/pintuer.css">
		<!-- 日历插件css -->
		<link rel="stylesheet" href="./../public/css/dcalendar.picker.css" />
		<!-- 账单汇总 -->
		<link rel="stylesheet" href="./css/general-order.css">
	</head>
	<body ms-controller="generalOrder">
		<div class="content">
			<div>
				<div class="account_section ">
					<div class="line-big border section_common">
						<div class="x12">
							<!-- <div class="line-big bg-sub box-header">
								<div class="x8 title">
									账单汇总
								</div>
								<div class="x4 text-right">
									<a href="javascript:;"></a>
								</div>
							</div> -->
							<div class="line-big ">
								<div class="x12" >
									<form action="account.do?act=account" name="myform" method="post">
										<!-- <div class="line-big am-form-group">
											<div class="x3 text-left">
												店铺
											</div>
											<div class="x9">
												<select class="commoninput">
													<option value="全部">全部</option>
													<option value="[总店]天择信上(微信)">[总店]天择信上(微信)</option>
													<option value="天择收银一">[总店]天择信上(微信)</option>
													<option value="天择收银02">[总店]天择信上(微信)</option>
													<option value="天择收银03">[总店]天择信上(微信)</option>

												</select>

											</div>
										</div>
										
 -->
										<div class="line-big am-form-group">
											<div class="am-form-left ">
												<span>订单号</span>
											</div>
											<div class="am-form-right ">

												<input class="commoninput_date" type='text' value="" ms-duplex="@orderNumber" autocomplete="off"/>

											</div>
										</div>
										<div class="line-big am-form-group">
											<div class="am-form-left">
												支付场景
											</div>

											<div class="am-form-right">
												<select class="commoninput" ms-duplex="@payscan">
													<option value="">请选择支付场景</option>
													<option value="101">支付宝当面付</option>
													<option value="102">支付宝口碑</option>
													<option value="103">当面付机具</option>
													<option value="104">当面付固定码</option>
													<option value="105">口碑机具</option>
													<option value="106">花呗分期收款</option>
													<option value="901">支付宝预授权消费</option>
													<option value="201">微信</option>
													<option value="202">微信机具</option>
													<option value="203">微信固定码</option>
													<option value="905">微信预授权消费</option>
													<option value="902">刷卡预授权</option>
													<option value="660">银行卡刷卡</option>
													<option value="701">现金</option>
												</select>

											</div>
										</div>
										<div class="line-big am-form-group">
											<div class="am-form-left ">
												<span>日期范围：</span>

											</div>
											<div class="am-form-right ">
												<input id='mydatepicker' class="commoninput_date" type='text' ms-duplex="@startTime" autocomplete="off"/>
												<input id='mydatepicker2' class="commoninput_date" type='text' ms-duplex="@endTime" autocomplete="off"/>
												<p class=" tips "> 提示:支持最大跨度31天的账单</p>
											</div>
										</div>
										<div class="line-big am-form-group text-right">
											<div class="">
												<button class="button bg-sub" type="button" ms-on-click="@serach()">
													<img class="loadimg" :class="showLoad ? '' : 'hide'"  src="./../public/images/load3.gif" /><!-- <span class="icon-search"></span> -->搜索</button>
												<button class="button n-option" type="button" ms-on-click="@higherserach('ishighermain')">
													<span class="icon-search"></span>高级搜索</button>

												<button class="button n-option" type="button" ms-on-click="@exportdata()">
													<span class="icon-folder-o"></span>导出数据</button>
											</div>
										</div>
										<div class="higher-search"    ms-class="@ishighermain?'showblock':'hide'">
											<div class="line-big am-form-group">
												<div class="am-form-left text-left">
													收银员
												</div>

												<div class="am-form-right">
													<select class="commoninput" ms-duplex="@salepeople">
														<option value="0">全部</option>
														<option ms-for="item in @salelist" ms-attr="{value: item.id}">{{item.nickname}}</option>

													</select>

												</div>
											</div>
											<div class="line-big  am-form-group">
												<div class="am-form-left text-left ">
													订单状态
												</div>

												<div class="am-form-right right_content_all">
													<select class="commoninput" ms-duplex="@orderStatus">
														<option value="">全部</option>
														<option value="1">支付成功</option>
														<option value="2">支付取消</option>
														<option value="3">等待用户支付</option>
														<option value="4">支付成功（有退款）</option>
														<option value="5">订单关闭</option>
														<option value="6">退款成功</option>


													</select>
													<!-- <p class=" tips "> 注："交易成功"状态包含"支付成功"和"退款成功"</p> -->

												</div>
											</div>
											<div class="line-big am-form-group">
												<div class="am-form-left text-left">
													支付方式
												</div>

												<div class="am-form-right">
													<select class="commoninput" ms-duplex="@payway">
														<option value="">全部</option>
														<option value="alipay">支付宝支付通道</option>
														<option value="weixin">微信支付通道</option>
														<option value="sfbank">盛付通支付通道</option>

													</select>

												</div>
											</div>

										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
					<!-- 对账单列表列表 -->
					<div class="line-big border section_common bill-list"  ms-class="@isshowList?'showblock':'hide'">
						<div class="x12">
							<div class="line-big bg-sub box-header">
								<div class="x8 title">
									账单信息
								</div>
								<div class="x4 text-right">
									<a href="javascript:;"></a>
								</div>
							</div>
							<div class="line-big ">
								<div class="x12">
									<div class="table-responsive">
										<table class="table">
											<tr>
												<th>店铺</th>
												<th>订单</th>
												<th>交易金额</th>
												<th>收银员</th>

												<!-- <th>费率</th>
												<th>手续费</th>
												<th>净收金额</th>
												<th>类型</th> -->
												<th>交易时间</th>
												<th>状态</th>
												<th>操作 </th>
											</tr>

											<tr ms-for="item in @list">
												<td>
													<p>{{item.store_name}}</p>

												</td>
												<td>{{item.out_trade_no}}</td>
												<td>{{item.total_amount}}</td>
												<td>{{item.nickname}}</td>
												<!-- <td>{{item.rate}}%</td>
												<td>{{item.rate_amount}}</td>
												<td>{{item.real_amount}}</td>
												<td>
													<p>{{item.consume_type}}</p>

												</td> -->
												<td>{{item.created_at}}</td>
												<td>{{item.pay_status}}</td>
												<td>
													<p ms-class="item.pay_status=='支付成功'?'':'hide'"><a href="javascript: ;"><button class="button  bg-blue"
															 ms-on-click="returnMoney(item.out_trade_no,item.total_amount)">退款处理</button></a></p>
													<p class="mt5"><a ><button
															 class="button  bg-blue"  type="button" ms-click="@orderDetailClick(item.out_trade_no)">订单详情</button></a></p>
													<p class="mt5"><a href="javascript: ;"><button class="button  bg-blue" type="button">打印订单</button></a></p>

												</td>

											</tr>

										</table>
										<div ms-if="@total==0" class="no_data">--- 暂无数据 ---</div>
									</div>
									<div class="tongji">共计:{{@total}}条</div>
									<div class="page">
										<a class="pagePre " ms-class="@pageisshow ?'showblock':'hide' " ms-on-click="pagepre"><span>《</span></a> 
										<a ms-for="el in @totalpage" ms-class="[(@totalpage.length==1?'hide':''),(@page==el?'active':'')]"
											 ms-on-click="@pageto(el)">
												{{el}}
										</a>
										<a class="pageNext " ms-class="@pageisshow ?'showblock':'hide' " ms-on-click="pagenext"><span>》</span></a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>
		</div>
		<!-- 弹框 -->
		<div class="mask" :class='@toggle? "openmask":""'></div>
		<div class="dialog" :class='@toggle? "open":""'>
			<div class="dialog-head">
				<strong>确认把订单的金额退还给用户吗？</strong>
			</div>
			<div class="dialog-body">
				<form>

					<div class="line-big am-form-group1">
						<div class="x3">
							退款金额
						</div>

						<div class="x9">
							<input class="commoninput_date" value="" ms-duplex="@payMoney" />

						</div>
					</div>
					<div class="line-big am-form-group1">
						<div class="x3">
							支付密码
						</div>

						<div class="x9">
							<input class="commoninput_date" type='password' value="" ms-duplex="@paypassword" />

						</div>
					</div>

					<div class="line-big am-form-group1">
						<div class="x3 ">
							备注
						</div>

						<div class="x9">
							<input class="commoninput_date" type='text' value="" ms-duplex="@payremarks" />

						</div>
					</div>
				</form>
			</div>
			<div class="dialog-foot">

				<button class="button button-small bg-blue" ms-click="@sureClick()">
					确认</button>
				<button class="button button-small ml10" ms-click="@closeClick()">
					关闭</button>
			</div>
		</div>

	</body>
	<!-- api配置文档 -->
	<script src="./../api/api.js"></script>
	<!-- jquery -->
	<script src="./../public/js/jquery.js"></script>
	<!-- 拼图 js -->
	<script src="./../public/js/pintuer.js"></script>
	<!-- avalon js -->
	<script src="./../public/js/avalon.js"></script>
	<!-- 日历插件 -->
	<script type="text/javascript" src="./../public/js/dcalendar.picker.js"></script>
	<!-- common js -->
	<script src="./../public/js/common.js"></script>
	<!-- 账单汇总js -->
	<script src="./js/general-order.js"></script>
</html>
